package com.sztx.worker_monitor.web.model;

import com.sztx.worker_monitor.common.Md5Util;


public class PwdInfoModel {
	private String salt;
	private String md5PwdSalt;
	private String disturbance;
	private String md5all;         //md5(md5(pwd+salt)+dis)
	
	public PwdInfoModel(){}
	
	public PwdInfoModel(String salt,String disturbance,String md5PwdSalt){
		
		this.salt = salt;
		this.disturbance = disturbance;
		this.md5PwdSalt = md5PwdSalt;
		
		this.md5all = Md5Util.getMd5(md5PwdSalt + disturbance);	
	}
	
	public PwdInfoModel(String salt,String md5PwdSalt){
		this.salt = salt;
		this.md5PwdSalt = md5PwdSalt;
	}
	
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	public String getMd5PwdSalt() {
		return md5PwdSalt;
	}
	public void setMd5PwdSalt(String md5PwdSalt) {
		this.md5PwdSalt = md5PwdSalt;
	}
	public String getDisturbance() {
		return disturbance;
	}
	public void setDisturbance(String disturbance) {
		this.disturbance = disturbance;
	}
	public String getMd5all() {
		return md5all;
	}
	public void setMd5all(String md5all) {
		this.md5all = md5all;
	}
	
	
	

}
